﻿using System.Linq;
using System.Collections.Generic;

namespace NazTek.Documenter.Ssis.Control
{
    public sealed class SsisPackageManager : List<SsisPackage>
    {
        public SsisPackageManager(params string[] ssisPackages)
        {
            ssisPackages.ToList().ForEach(pkgLocation => Add(new SsisPackage(pkgLocation)));
        }
        public Dictionary<string, string> GetDoc()
        {
            return this.ToDictionary(pkg => string.Format("{0}.htm", pkg.Name), pkg => pkg.BuildDoc());
        }
    }
}